package com.example.service.Impl;

import com.example.entity.EasybuyUser;
import com.example.mapper.EasybuyUserMapper;
import com.example.service.EasybuyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EasybuyUserServiceImpl implements EasybuyUserService {

    @Autowired
    public EasybuyUserMapper easybuyUserMapper;

    @Override
    public EasybuyUser login(String name, String pwd) {
        return easybuyUserMapper.login(name,pwd);
    }

    @Override
    public int register(EasybuyUser user) {
        return easybuyUserMapper.insert(user);
    }
}
